package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.DataItems;
import cn.wolfcode.crm.query.QueryObject;

import java.util.List;

public interface DataItemsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(DataItems record);

    DataItems selectByPrimaryKey(Long id);

    List<DataItems> selectAll();

    int updateByPrimaryKey(DataItems record);

    /**
     * @param qo 查询条件对象
     * @return 总记录
     */
    int queryForCount(QueryObject qo);

    /**
     * 高级查询总数据
     */
    List<DataItems> queryForList(QueryObject qo);

    List<DataItems> queryItemsBySn(String sn);

    String queryItemsByName(String name);
}